package com.leoman.user.service.impl;

import com.leoman.common.service.impl.GenericManagerImpl;
import com.leoman.user.dao.UserLoginDao;
import com.leoman.user.entity.UserLogin;
import com.leoman.user.service.UserLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 蔡琦 on 2016/6/17 0017.
 *
 */
@Service
public class UserLoginServiceImpl extends GenericManagerImpl<UserLogin, UserLoginDao> implements UserLoginService {

    @Autowired
    private UserLoginDao userLoginDao;

    @Override
    public UserLogin findByMobile(String mobile) {
        return userLoginDao.findByUsername(mobile);
    }
}
